third-party-exp-api
Western Union - Get DeliveryOptionTemplate
Description: This API returns a Delivery Option template with a list of field specifications required to be included in the Send Money request with D2B delivery service.
The experience API (third-party-api) will push the requests to third-party-prc api which sends the request to wu-sys-api and responds back to the channel.
Mulesoft Request:
Headers:
Mandatory Headers: x-correlation-id, client_id, Authorization, x-channel-id
Optional Headers: x-sub-channel-id, , x-bank-id, x-user-id, x-debug-flag, x-customer-id, client_secret
Paramaters:
URI Params: NA
Query Params: language (Optional)
countryCurrencyCode (Mandatory)
deliveryServiceType (Mandatory)
Content-type: application/json
Mulesoft Response:
Success Response: (200)
{
"status": {
"success": true,
"code": "200",
"arabicMessage": "تمت العملية بنجاح",
"englishMessage": "The Operation has been Successfully Completed"
},
"response": {
"deliveryOptionsTemplate":[
{
"product": "DLVSVCS_UNIVERSAL H2H",
"category": "4020",
"templateIndex": "000",
"description": "0; ; 0; ; ;EPT ; 0;"
},
{
"product": "UNIVERSAL ADDRESS DLV H2H",
"category": "INDEPT",
"templateIndex": "000",
"description": "223; EARTHPORT IN/INR D2B; ; ; 223; ; 223; 09:30:00Z,0;"
}]
}
}
Sample Error Response:
500 :
{
"success”: false,
"code”: 500,
"reasonCode”: "Internal Server Error",
"arabicMessage”: "",
"englishMessage":"NO MATCHING RECORDS FOUND",
"backendError": "NO MATCHING RECORDS FOUND", (if debug flag is on)
"backendCode": "D0004" (if debug flag is on)
}